ABC167 C - Skill Up
提出
code: python
import itertools
n, m, x = map(int, input().split())
ans = float('inf')
for i in range(1, n+1):
for j in itertools.combinations(a, i):
for k in j:
for l in range(m+1):
if (min(understand1:) >= x): if (res < ans):
ans = res
if (ans == float('inf')):
print(-1)
else:
print(ans)
テーマ